//
//  EmojiCollectionViewCell.m
//  CustomEmojiKeyBoardDemo
//
//  Created by Lisa on 16/11/9.
//  Copyright © 2016年 Elisa. All rights reserved.
//

#import "EmojiCollectionViewCell.h"

@interface EmojiCollectionViewCell ()
@property (nonatomic, strong) UIButton *emojiButton;

@end

@implementation EmojiCollectionViewCell
- (id)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        self.emojiButton = [UIButton buttonWithType:UIButtonTypeCustom];
        self.emojiButton.frame = self.bounds;
        self.emojiButton.backgroundColor = [UIColor clearColor];
        self.emojiButton.userInteractionEnabled = NO;
        [self.contentView addSubview:self.emojiButton];
    }
    return self;
}
- (id)init{
    if (self = [super init]) {
        self.emojiButton = [UIButton buttonWithType:UIButtonTypeCustom];
        self.emojiButton.frame = self.bounds;
        self.emojiButton.backgroundColor = [UIColor grayColor];
        [self.contentView addSubview:self.emojiButton];
    }
    return self;
}
- (void)updateEmojiCellWithStr:(NSString *)emojiStr
{
    if (emojiStr.length > 0) {
        [self.emojiButton setTitle:emojiStr forState:UIControlStateNormal];
        
    }
}


@end
